﻿@model Guline.Web.CentralModels.Object.Device
@{
    ViewBag.Title = @Guline.Web.CentralLanguages.Main.lblCreateDevice;
    Layout = "~/Views/Shared/_GLSettingLayout.cshtml";
}
<span class="s_title_body_right">@ViewBag.Title</span>
<div class="s_content_body_right" style="text-align:center">
    @using (Html.BeginForm())
    {
        <table border="0" style="display:inline-block">
            <col style="width:25%">
            <col style="width:75%">
            <tr class="div_filed">
                <td class="td_right">@Guline.Web.CentralLanguages.Main.lblDeviceName</td>
                <td class="td_left">
                    @Html.TextBoxFor(m => m.Name)
                    <span class="msg">@Html.ValidationMessageFor(m => m.Name)</span>
                </td>
            </tr>
            <tr class="div_filed">
                <td class="td_right">@Guline.Web.CentralLanguages.Main.lblAndroidID</td>
                <td class="td_left">
                    @Html.TextBoxFor(m => m.AndroidID)
                    <span class="msg">@Html.ValidationMessageFor(m => m.AndroidID)</span>
                </td>
            </tr>
            <tr class="div_filed">
                <td class="td_right">@Guline.Web.CentralLanguages.Main.lblEnable</td>
                <td class="td_left">
                    @Html.EditorFor(m => m.Enable)
                    <span class="msg">@Html.ValidationMessageFor(m => m.Enable)</span>
                </td>
            </tr>
            <tr class="div_filed">
                <td class="td_right">@Guline.Web.CentralLanguages.Main.lblStatus</td>
                <td class="td_left">
                    @{var listItems = new List<System.Web.UI.WebControls.ListItem>
            {
                new System.Web.UI.WebControls.ListItem { Text = "--- Select Status ---", Value="" },
                new System.Web.UI.WebControls.ListItem { Text = "Offline", Value="0" },
                new System.Web.UI.WebControls.ListItem { Text = "Online", Value="1" }
            };
                    }
                    @Html.DropDownList("Status", new SelectList(listItems, "Value", "Text"))
                    <span class="msg">@Html.ValidationMessageFor(m => m.Status)</span>
                </td>
            </tr>
            <tr class="div_filed">
                <td class="td_right">@Guline.Web.CentralLanguages.Main.lblPhoneNumber</td>
                <td class="td_left">
                    @Html.EditorFor(m => m.PhoneNumber)
                    <span class="msg">@Html.ValidationMessageFor(m => m.PhoneNumber)</span>
                </td>
            </tr>
        </table>
        <div class="submit">
            <input type="submit" value="@Guline.Web.CentralLanguages.Main.lblCreate" class="btn_submit center" />
            <a href="@Url.Action("Index")" class="center s_cancel">@Guline.Web.CentralLanguages.Main.lblCancel</a>
        </div>
    }
</div>
